package com.mantru.iotpot.DateClass;

import java.util.List;

public class ResponseData {
    private boolean success;
    private int pageIndex;
    private int pageCount;
    private int limit;
    private int recordCount;
    private int dataSize;
    private List<ErrorData> data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public int getDataSize() {
        return dataSize;
    }

    public void setDataSize(int dataSize) {
        this.dataSize = dataSize;
    }

    public List<ErrorData> getData() {
        return data;
    }

    public void setData(List<ErrorData> data) {
        this.data = data;
    }

    public ResponseData(boolean success, int pageIndex, int pageCount, int limit, int recordCount, int dataSize, List<ErrorData> data) {
        this.success = success;
        this.pageIndex = pageIndex;
        this.pageCount = pageCount;
        this.limit = limit;
        this.recordCount = recordCount;
        this.dataSize = dataSize;
        this.data = data;
    }
}
